home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Development Kits / MPW etc / Miscellaneous / MPW p2c / p2cLibraries / PSets.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-29  |  1.6 KB  |  46 lines  |  [TEXT/MPS ]

  1. /*---------------------------------------------------------------------------*
  2.  |                                                                           |
  3.  |                    <<< PSets.h - Pascal set routines >>>                  |
  4.  |                                                                           |
  5.  *---------------------------------------------------------------------------*/
  6.  
  7. /* This file contains:
  8.  
  9.     
  10. */
  11.  
  12. #ifndef __PSETS__
  13. #define __PSETS__
  14.  
  15. #ifndef __TYPES__
  16. #include <Types.h>
  17. #endif
  18.  
  19.  
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23.  
  24. typedef unsigned char PSet_Set8;
  25. typedef unsigned short PSet_Set16;
  26. typedef unsigned long PSet_Set32;
  27. typedef unsigned short PSet_BigSet;
  28.  
  29. extern void PSet_Init(unsigned short *theSet, short nbrWords);
  30. extern void PSet_Set(unsigned short *theSet, short nbrWords, unsigned long theElem);
  31. extern void PSet_SetRange(unsigned short *theSet, short nbrWords, unsigned long elem1, unsigned long elem2);
  32. extern Boolean PSet_Test(unsigned short *theSet, short nbrWords, unsigned long theElem);
  33. extern Boolean PSet_Eq(unsigned short *set1, unsigned short *set2, short nbrWords);
  34. extern Boolean PSet_Subset(unsigned short *set1, unsigned short *set2, short nbrWords);
  35. extern Boolean PSet_Subset2(unsigned long set1, unsigned long set2);
  36. extern unsigned short *PSet_Difference(unsigned short *dest, unsigned short *set1, unsigned short *set2, short nbrWords);
  37. extern unsigned short *PSet_Intersection(unsigned short *dest, unsigned short *set1, unsigned short *set2, short nbrWords);
  38. extern unsigned short *PSet_Union(unsigned short *dest, unsigned short *set1, unsigned short *set2, short nbrWords);
  39.  
  40.  
  41. #ifdef __cplusplus
  42. }
  43. #endif
  44.  
  45. #endif
  46.